<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition template="/template.xhtml">
	<ui:define name="head">
		<link
			href="#{facesContext.externalContext.requestContextPath}/css/cv.css"
			rel="stylesheet" type="text/css" />
		<link
			href="#{facesContext.externalContext.requestContextPath}/css/upload.css"
			rel="stylesheet" type="text/css" />

	</ui:define>
	<ui:define name="content">
		<div id="head" align="center">
			<h:outputText value="#{label.uploadUsers}" style="font-size: 30px;" />
			<hr></hr>
		</div>
		<h:form styleClass="icons">
			<h:outputText value="#{label.acceptedFormats}" styleClass="iconText" />
			<h:graphicImage value="/img/uploadIcons/xml.png" />
			<h:graphicImage value="/img/uploadIcons/csv.png" />
		</h:form>
		<h:form id="uploadForm" enctype="multipart/form-data"
			styleClass="uploadForm">
			<h:panelGrid columns="3" style=" height : 70px;">
				<h:outputLabel for="file" value="#{label.selectFile}"
					styleClass="uploadText" />
				<t:inputFileUpload id="file"
					value="#{adminUploadAction.uploadedFile}"
					title="#{label.clickToSelectFile}" required="true"
					styleClass="uploadFile"
					requiredMessage="#{message['javax.faces.component.UIInput.REQUIRED']}" />
				<h:message for="file" style="color: red;" styleClass="errorMessage" />
				<h:panelGroup />
				<h:commandButton value="#{label.startUpload}"
					action="#{adminUploadAction.save()}" styleClass="saveButton" />
				<h:message for="uploadForm" infoStyle="color: green;"
					errorStyle="color: red;" styleClass="errorMessage" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>